/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package business;

import java.sql.*;

/**
 *
 * @author User
 */
public class ShowMember {

    private String id;
    private String nama;
    private String jk;
    private String email;
    private String role;

    public ShowMember() {
        nama = "";
        jk = "";
        id = "";
        email = "";
        role = "";
    }

    public ShowMember(String id, String nama, String jk, String email, String role) {
        this.nama = nama;
        this.jk = jk;
        this.id = id;
        this.email = email;
        this.role = role;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getJk() {
        return jk;
    }

    public void setJk(String jk) {
        this.jk = jk;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public ShowMember(ResultSet resultSet) throws SQLException {
        this.id = resultSet.getString(1);
        this.nama = resultSet.getString(2);
        this.jk = resultSet.getString(3);
        this.email = resultSet.getString(4);
        this.role = resultSet.getString(6);
    }
}
